<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ChompBombs: Référence du fichier /home/etu/c/p1006411/chompbombs/src/jeu.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Généré par Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ChompBombs</div>
   <div id="projectbrief">Jeu_de_Bomberman</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<h1>Référence du fichier /home/etu/c/p1006411/chompbombs/src/jeu.c</h1>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="jeu_8h_source.html">jeu.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ennemi_8h_source.html">ennemi.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="bombe_8h_source.html">bombe.h</a>&quot;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &quot;assert.h&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#aa7d9a4e336fc70c30ee62bd831496b08">jeuInit</a> (<a class="el" href="structjeu.html">jeu</a> *pj, const int numeroTerrain, const int mode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">initialise le jeu en fonction du terrain et du mode de jeu  <a href="#aa7d9a4e336fc70c30ee62bd831496b08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a2f02e9024427f70e8dd279f7bbc4946a">jeuLibere</a> (<a class="el" href="structjeu.html">jeu</a> *pj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">libère la mémoire alloué par le jeu  <a href="#a2f02e9024427f70e8dd279f7bbc4946a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structterrain.html">terrain</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a1cc2e69fbc50b44b8d3521bce00527f2">jeuGetTerrainPtr</a> (<a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupere le terrain de la structure jeu  <a href="#a1cc2e69fbc50b44b8d3521bce00527f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmario.html">mario</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#afeec2e116c17c43d472376645ebe0b67">jeuGetMarioPtr</a> (<a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupere le mario de la structure jeu  <a href="#afeec2e116c17c43d472376645ebe0b67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structmario.html">mario</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a23f03db77269990cc0ca071e29bf68bc">jeuGetLuigiPtr</a> (<a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupere le luigi de la structure jeu  <a href="#a23f03db77269990cc0ca071e29bf68bc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structterrain.html">terrain</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a02e05598b3972bcf89d7691794783f01">jeuGetConstTerrainPtr</a> (const <a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le terrain du jeu en const  <a href="#a02e05598b3972bcf89d7691794783f01"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structmario.html">mario</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#ae1a8c7675961ff902c0b07da0549378e">jeuGetConstMarioPtr</a> (const <a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le mario du jeu en const  <a href="#ae1a8c7675961ff902c0b07da0549378e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structmario.html">mario</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#adf2fb63eea6fa6dfe2b9c15f89a0ec0a">jeuGetConstLuigiPtr</a> (const <a class="el" href="structjeu.html">jeu</a> *pJeu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">récupère le luigi du jeu en const  <a href="#adf2fb63eea6fa6dfe2b9c15f89a0ec0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a1af00e8489e646d60ce9dd7b3e6999cc">jeuActionClavier</a> (<a class="el" href="structjeu.html">jeu</a> *pj, const char touche, const int mode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">initialise le jeu en fonction du terrain et du mode de jeu  <a href="#a1af00e8489e646d60ce9dd7b3e6999cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a09008089e8b3b20a7989884f99249185">gestionExplosion</a> (<a class="el" href="structjeu.html">jeu</a> *pJeu, <a class="el" href="structmario.html">mario</a> *marioM, <a class="el" href="structmario.html">mario</a> *luigiL, const int mode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">s'occupe des explosion de bombes et verifie si l'un des hero est mort  <a href="#a09008089e8b3b20a7989884f99249185"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a82097c62968f3bd9259a3737bbddea64">deplaceEnnemis</a> (<a class="el" href="structjeu.html">jeu</a> *<a class="el" href="structjeu.html">jeu</a>, const int mode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">s'occupe du déplacement des ennemis  <a href="#a82097c62968f3bd9259a3737bbddea64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a112d9fd1ae8a71dfd5e2381db4f97c9a">obtientBonus</a> (<a class="el" href="structjeu.html">jeu</a> *<a class="el" href="structjeu.html">jeu</a>, <a class="el" href="structmario.html">mario</a> *<a class="el" href="structmario.html">mario</a>, const int nbCaissesAvant)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ajoute ou non des bonus a mario si des caisses ont été détruites  <a href="#a112d9fd1ae8a71dfd5e2381db4f97c9a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#ab46f37b579c9a153fb8244d9f43f493a">marioInvincible</a> (<a class="el" href="structjeu.html">jeu</a> *<a class="el" href="structjeu.html">jeu</a>, <a class="el" href="structmario.html">mario</a> *<a class="el" href="structmario.html">mario</a>, const int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">gestion de l'invinscibilité de mario  <a href="#ab46f37b579c9a153fb8244d9f43f493a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a7be47f1f17035b9b678aceba8537cfb2">gestionDegats</a> (<a class="el" href="structjeu.html">jeu</a> *<a class="el" href="structjeu.html">jeu</a>, <a class="el" href="structmario.html">mario</a> *<a class="el" href="structmario.html">mario</a>, const int i, const char direction)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">verifie si mario a été touché par l'ennemi  <a href="#a7be47f1f17035b9b678aceba8537cfb2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jeu_8c.html#a61905fe2561da92b585718f52340c767">compteEnnemis</a> (<a class="el" href="structjeu.html">jeu</a> *<a class="el" href="structjeu.html">jeu</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">compte le nombre d'ennemis restants  <a href="#a61905fe2561da92b585718f52340c767"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a61905fe2561da92b585718f52340c767"></a><!-- doxytag: member="jeu.c::compteEnnemis" ref="a61905fe2561da92b585718f52340c767" args="(jeu *jeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int compteEnnemis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>jeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>compte le nombre d'ennemis restants </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>entier </dd></dl>

</div>
</div>
<a class="anchor" id="a82097c62968f3bd9259a3737bbddea64"></a><!-- doxytag: member="jeu.c::deplaceEnnemis" ref="a82097c62968f3bd9259a3737bbddea64" args="(jeu *jeu, const int mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void deplaceEnnemis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>s'occupe du déplacement des ennemis </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a7be47f1f17035b9b678aceba8537cfb2"></a><!-- doxytag: member="jeu.c::gestionDegats" ref="a7be47f1f17035b9b678aceba8537cfb2" args="(jeu *jeu, mario *mario, const int i, const char direction)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gestionDegats </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmario.html">mario</a> *&#160;</td>
          <td class="paramname"><em>mario</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>verifie si mario a été touché par l'ennemi </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>entier (num de l'ennemi) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">direction</td><td>caractere (direction du deplacement de mario si il est touché) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>entier (0 mario est mort, 2 mario touché mais pas mort, 1 si mario non touché) </dd></dl>

</div>
</div>
<a class="anchor" id="a09008089e8b3b20a7989884f99249185"></a><!-- doxytag: member="jeu.c::gestionExplosion" ref="a09008089e8b3b20a7989884f99249185" args="(jeu *pJeu, mario *marioM, mario *luigiL, const int mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gestionExplosion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmario.html">mario</a> *&#160;</td>
          <td class="paramname"><em>marioM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmario.html">mario</a> *&#160;</td>
          <td class="paramname"><em>luigiL</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>s'occupe des explosion de bombes et verifie si l'un des hero est mort </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>entier (0 si mario mort, 1 sinon) </dd></dl>

</div>
</div>
<a class="anchor" id="a1af00e8489e646d60ce9dd7b3e6999cc"></a><!-- doxytag: member="jeu.c::jeuActionClavier" ref="a1af00e8489e646d60ce9dd7b3e6999cc" args="(jeu *pj, const char touche, const int mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void jeuActionClavier </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>touche</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>initialise le jeu en fonction du terrain et du mode de jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">touche</td><td>caractere </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="adf2fb63eea6fa6dfe2b9c15f89a0ec0a"></a><!-- doxytag: member="jeu.c::jeuGetConstLuigiPtr" ref="adf2fb63eea6fa6dfe2b9c15f89a0ec0a" args="(const jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structmario.html">mario</a>* jeuGetConstLuigiPtr </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le luigi du jeu en const </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur mario </dd></dl>

</div>
</div>
<a class="anchor" id="ae1a8c7675961ff902c0b07da0549378e"></a><!-- doxytag: member="jeu.c::jeuGetConstMarioPtr" ref="ae1a8c7675961ff902c0b07da0549378e" args="(const jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structmario.html">mario</a>* jeuGetConstMarioPtr </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le mario du jeu en const </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur mario </dd></dl>

</div>
</div>
<a class="anchor" id="a02e05598b3972bcf89d7691794783f01"></a><!-- doxytag: member="jeu.c::jeuGetConstTerrainPtr" ref="a02e05598b3972bcf89d7691794783f01" args="(const jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structterrain.html">terrain</a>* jeuGetConstTerrainPtr </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupère le terrain du jeu en const </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur terrain </dd></dl>

</div>
</div>
<a class="anchor" id="a23f03db77269990cc0ca071e29bf68bc"></a><!-- doxytag: member="jeu.c::jeuGetLuigiPtr" ref="a23f03db77269990cc0ca071e29bf68bc" args="(jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmario.html">mario</a>* jeuGetLuigiPtr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupere le luigi de la structure jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur mario </dd></dl>

</div>
</div>
<a class="anchor" id="afeec2e116c17c43d472376645ebe0b67"></a><!-- doxytag: member="jeu.c::jeuGetMarioPtr" ref="afeec2e116c17c43d472376645ebe0b67" args="(jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structmario.html">mario</a>* jeuGetMarioPtr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupere le mario de la structure jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur mario </dd></dl>

</div>
</div>
<a class="anchor" id="a1cc2e69fbc50b44b8d3521bce00527f2"></a><!-- doxytag: member="jeu.c::jeuGetTerrainPtr" ref="a1cc2e69fbc50b44b8d3521bce00527f2" args="(jeu *pJeu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structterrain.html">terrain</a>* jeuGetTerrainPtr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>récupere le terrain de la structure jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>pointeur sur terrain </dd></dl>

</div>
</div>
<a class="anchor" id="aa7d9a4e336fc70c30ee62bd831496b08"></a><!-- doxytag: member="jeu.c::jeuInit" ref="aa7d9a4e336fc70c30ee62bd831496b08" args="(jeu *pj, const int numeroTerrain, const int mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void jeuInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>numeroTerrain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>initialise le jeu en fonction du terrain et du mode de jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">numeroTerrain</td><td>entier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a2f02e9024427f70e8dd279f7bbc4946a"></a><!-- doxytag: member="jeu.c::jeuLibere" ref="a2f02e9024427f70e8dd279f7bbc4946a" args="(jeu *pj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void jeuLibere </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>pJeu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>libère la mémoire alloué par le jeu </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>noone </dd></dl>

</div>
</div>
<a class="anchor" id="ab46f37b579c9a153fb8244d9f43f493a"></a><!-- doxytag: member="jeu.c::marioInvincible" ref="ab46f37b579c9a153fb8244d9f43f493a" args="(jeu *jeu, mario *mario, const int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void marioInvincible </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmario.html">mario</a> *&#160;</td>
          <td class="paramname"><em>mario</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>gestion de l'invinscibilité de mario </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">i</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a112d9fd1ae8a71dfd5e2381db4f97c9a"></a><!-- doxytag: member="jeu.c::obtientBonus" ref="a112d9fd1ae8a71dfd5e2381db4f97c9a" args="(jeu *jeu, mario *mario, const int nbCaissesAvant)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void obtientBonus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjeu.html">jeu</a> *&#160;</td>
          <td class="paramname"><em>jeu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structmario.html">mario</a> *&#160;</td>
          <td class="paramname"><em>mario</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>nbCaissesAvant</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ajoute ou non des bonus a mario si des caisses ont été détruites </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pJeu</td><td>pointeur sur jeu </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nbCaissesAvant</td><td>entier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>none </dd></dl>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définition de type</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Énumérations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Valeurs énumérées</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Généré le Thu Jun 7 2012 15:48:57 pour ChompBombs par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
